﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Elsa.Workflows.Memory;

namespace T.FAS.Runtime.MF.SPI
{
    public interface IActivityWithExceptionHandle
    {
        /// <summary>
        /// 节点输出的变量列表
        /// </summary>
        List<Variable> ActivityOutputVariables { get; }
        /// <summary>
        /// 失败策略
        /// </summary>
        string FaultedStrategy { get; set; } 
        /// <summary>
        /// 正常执行的输出端口
        /// </summary>
        List<string> DoneOutcomes { get; set; }
        /// <summary>
        /// 异常执行的输出端口
        /// </summary>

         List<string> ExceptionOutcomes { get; set; }

        /// <summary>
        /// 当节点发生异常时，给每个变量赋的默认值
        /// </summary>
         Dictionary<string, Object> DefaultValuesWhenException { get; set; }
    }
}
